go.pact.im/x/goship/internal/vcs/gitvcs.Repo.root (field)
21 uses
go.pact.im/x/goship/internal/vcs/gitvcs (current package)
repo.go#L57: root string
repo.go#L73: root: filepath.Clean(strings.TrimSpace(out)),
repo.go#L83: func (r *Repo) Root() string { return r.root }
repo.go#L88: id, err := runGit(ctx, r.program, r.root, "rev-parse", "--verify", rev+"^{commit}")
repo.go#L96: if sym, err := runGit(ctx, r.program, r.root, "symbolic-ref", "-q", defaultRev); err == nil {
repo.go#L105: if _, err := runGit(ctx, r.program, r.root, "show-ref", "--verify", "--quiet", ref); err == nil {
repo.go#L115: out, err := runGit(ctx, r.program, r.root, "tag", "--list")
repo.go#L135: raw, err := runGitBytes(ctx, r.program, r.root, nil, args...)
repo.go#L150: return listFiles(ctx, r.program, r.root, rev, dir)
repo.go#L156: data, err := runGitBytes(ctx, r.program, r.root, nil, "cat-file", "blob", spec)
repo.go#L167: cmd.Dir = r.root
repo.go#L194: if _, err := runGit(ctx, r.program, r.root, "worktree", "add", "--detach", tmpDir, rev.ID); err != nil {
repo.go#L220: if _, err := runGit(ctx, r.program, r.root, args...); err != nil {
repo.go#L241: out, err := runGit(ctx, r.program, r.root, "config", "--type=bool", "tag.gpgSign")
session.go#L98: if sym, err := runGit(ctx, s.repo.program, s.repo.root, "symbolic-ref", "-q", "HEAD"); err == nil {
session.go#L132: if _, err := runGit(ctx, s.repo.program, s.repo.root, "merge", "--ff-only", finalID); err != nil {
session.go#L138: if _, err := runGitBytes(ctx, s.repo.program, s.repo.root, batch.Bytes(), "update-ref", "--stdin"); err != nil {
session.go#L144: if _, err := runGit(ctx, s.repo.program, s.repo.root, "tag", "-a", "-s", "-m", t.message, t.name, t.commitID); err != nil {
session.go#L163: ident, err := runGit(ctx, s.repo.program, s.repo.root, "var", "GIT_COMMITTER_IDENT")
session.go#L178: out, err := runGitBytes(ctx, s.repo.program, s.repo.root, payload.Bytes(), "mktag")
session.go#L190: _, err := runGit(context.Background(), s.repo.program, s.repo.root, "worktree", "remove", "--force", s.dir)